<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  <title>校园跳蚤市场系统</title>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" type="text/css" href="/Public/Matrix/css/bootstrap.min.css" />
  <link rel="stylesheet" type="text/css" href="/Public/Matrix/css/bootstrap-responsive.min.css" />
  <link rel="stylesheet" type="text/css" href="/Public/Matrix/css/matrix-style.css" />
  <link rel="stylesheet" type="text/css" href="/Public/Matrix/css/matrix-table.css" />
  <link rel="stylesheet" type="text/css" href="/Public/Matrix/css/matrix-media.css" />
  <link rel="stylesheet" type="text/css" href="/Public/Plu/font-awesome-4.2.0/css/font-awesome.min.css" />
</head>
<body>
<!--Header-part-->
<div id="header">
  <h1><a href="#">校园跳蚤市场系统</a></h1>
</div>
<!--close-Header-part--> 
<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
  <ul class="nav">
    <li  class="dropdown" id="profile-messages" ><a title="" href="/Member/editmy" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><span class="text">你好 <?php echo ((isset($user_info["username"]) && ($user_info["username"] !== ""))?($user_info["username"]):"未命名"); ?></span></a>
    </li>
    <li class="dropdown" id="menu-messages"><a href="/Index/loginout" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><span class="text">登出</span></a>
    </li>
  </ul>
</div>
<!--close-top-Header-menu-->
<!--sidebar-menu-->
<div id="sidebar"><a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard</a>
  <ul>
    <li class="navi submenu">
      <a href="#"><i class="icon icon-th-list"></i><span>日常管理</span></a>
      <ul>
        <li><a href="/User/account">记账单</a></li>
        <li><a href="/User/service">维修单</a></li>
      </ul>
    </li>
    <li class="navi submenu"> 
      <a href="#"><i class="icon icon-th-list"></i><span>无限级分类</span></a>
      <ul>
        <li><a href="/Category/topcate">添加顶级分类</a></li>
        <li><a href="/Category/secate">添加二级,三级分类</a></li>
        <li><a href="/Category/catelist">分类模板测试</a></li>
      </ul>
    </li>
      <li class="navi submenu">
        <a href="#"><i class="icon icon-th-list"></i><span>管理员配置信息</span></a>
        
          <ul>
            <li><a href="/Admininfo/admininfo_list">管理员配置列表</a></li>
            <li><a href="/Admininfo/admininfoadd">管理员配置信息添加</a></li>
          </ul> 
      </li>
  </ul>
</div>
<div id="content">
        <div class="container-fluid">
          <div class="row-fluid">
            <div class="span12">
              <div class="widget-box">
                <div class="widget-title">
                  <span class="icon"><i class="icon-th"></i></span>
                  <h5>添加账单</h5>
                </div>
                <div class="widget-content nopadding">
                  <form action="/User/account_do" method="POST" id="turntable_form" class="form-horizontal">
                                      <div class="control-group">
                                          <label class="control-label">商品名称</label>
                                          <div class="controls">
                                              <input type="text" require name="goodname" value="">
                                              <span class="help-inline"></span>
                                          </div>
                                      </div>
                                      <div class="control-group">
                                          <label class="control-label">数量</label>
                                          <div class="controls">
                                              <input type="text" require name="amount" value="">
                                              <span class="help-inline"></span>
                                          </div>
                                      </div>
                                      <div class="control-group">
                                          <label class="control-label">价钱</label>
                                          <div class="controls">
                                              <input type="text" require name="money" value="">
                                              <span class="help-inline"></span>
                                          </div>
                                      </div>
                    <div class="form-actions">
                      <button type="submit" class="btn btn-success">保存</button>
                    </div>
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="container-fluid">
        <div class="row-fluid">
          <div class="span12">
            <div class="widget-box">
              <div class="widget-title">
                <span class="icon"> <i class="icon-th"></i></span>
                <h5>当天账单列表</h5>
              </div>
                    <div class="widget-content nopadding">
                      <div class="dataTables_wrapper">
                        <table id="table" class="table table-bordered">
                    <tbody>
                      <tr class="table_header">
                        <th>序号</th>
                        <th>登记时间</th>
                        <th>商品名称</th>
                        <th>数量</th>
                        <th>价钱</th>
                        <th>操作</th>
                      </tr>
                    </tbody>
                    <tbody>
                      <?php if(is_array($list)): foreach($list as $key=>$vo): ?><tr>
                          <td><?php echo ($vo["accountid"]); ?></td>
                          <td><?php echo (date('Y-m-d',$vo["day"])); ?></td>
                          <td><?php echo ($vo["goodname"]); ?></td>
                          <td><?php echo ($vo["amount"]); ?></td>
                          <td><?php echo ($vo["money"]); ?></td>
                          <td>
                            <p class="opr">
                              <span><i class="icon-pencil"></i><a href="/User/account_edit?id=<?php echo ($vo["accountid"]); ?>" >编辑</a></span>
                              <span><i class="icon-pencil"></i><a href="/User/account_drop?id=<?php echo ($vo["accountid"]); ?>">删除</a></span>
                            </p>
                          </td>
                        </tr><?php endforeach; endif; ?>
                    </tbody>
                        <h2>合计：<?php echo ($money); ?></h2>
                        </table>
                      </div>
                      <?php echo ($page); ?>
                    </div>
            </div>
          </div>
        </div>
      </div>
</div>
<div class="row-fluid">
  <div id="footer" class="span12"> 2014 &copy; am项目</div>
</div>
<script src="/Public/Matrix/js/jquery.min.js"></script> 
<script src="/Public/Matrix/js/bootstrap.min.js"></script> 
<script src="/Public/Matrix/js/matrix.js"></script>
</body>
</html>